package simulateOS.entity;

import javafx.beans.property.SimpleStringProperty;

public class DiskData {
    /***
     * diskNum盘块号
     * diskIndex盘块索引
     * fileName占用文件名称
     * type盘块类型
     * fileLength文件长度
     * absoluteAddress文件所在绝对地址
     */
    private final SimpleStringProperty diskNum;
    private final SimpleStringProperty diskIndex;
    private final SimpleStringProperty fileName;
    private final SimpleStringProperty type;
    private final SimpleStringProperty fileLength;
    private final SimpleStringProperty absoluteAddress;


    public DiskData(String diskNum,String diskIndex,String fileName,String type,String fileLength,String absoluteAddress) {
        this.diskNum = new SimpleStringProperty(diskNum);
        this.diskIndex = new SimpleStringProperty(diskIndex);
        this.fileName = new SimpleStringProperty(fileName);
        this.type = new SimpleStringProperty(type);
        this.fileLength = new SimpleStringProperty(fileLength);
        this.absoluteAddress = new SimpleStringProperty(absoluteAddress);
    }

    public String getDiskNum() {
        return diskNum.get();
    }

    public SimpleStringProperty diskNumProperty() {
        return diskNum;
    }

    public void setDiskNum(String diskNum) {
        this.diskNum.set(diskNum);
    }

    public String getFileName() {
        return fileName.get();
    }

    public SimpleStringProperty fileNameProperty() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName.set(fileName);
    }

    public String getType() {
        return type.get();
    }

    public SimpleStringProperty typeProperty() {
        return type;
    }

    public void setType(String type) {
        this.type.set(type);
    }

    public String getFileLength() {
        return fileLength.get();
    }

    public SimpleStringProperty fileLengthProperty() {
        return fileLength;
    }

    public void setFileLength(String fileLength) {
        this.fileLength.set(fileLength);
    }

    public String getAbsoluteAddress() {
        return absoluteAddress.get();
    }

    public SimpleStringProperty absoluteAddressProperty() {
        return absoluteAddress;
    }

    public void setAbsoluteAddress(String absoluteAddress) {
        this.absoluteAddress.set(absoluteAddress);
    }

    public String getDiskIndex() {
        return diskIndex.get();
    }

    public SimpleStringProperty diskIndexProperty() {
        return diskIndex;
    }

    public void setDiskIndex(String diskIndex) {
        this.diskIndex.set(diskIndex);
    }
}
